import { IListResponse, IParams, IUpdateState, IUpdateStateRes } from './type';
import { defHttp } from '/@/utils/http/axios';

enum Api {
  List = '/cityManager/cityList',
  UpdateState = '/cityManager/updateState',
}

// 获取城市列表
export const ListApi = (params: IParams) => defHttp.get<IListResponse>({ url: Api.List, params });
// 修改城市状态
export const UpdateState = (params: IUpdateState) =>
  defHttp.get<IUpdateStateRes>({ url: Api.UpdateState, params });
